import request from "@/utils/request.js";


export function getData(params) {
    return request({
        url: '/api/user/list',
        method: 'post',
        headers: {'Content-Type': 'application/json'},
        data: params
    })
}

export function resetPassword(params){
    return request({
        url: '/api/user',
        method: 'patch',
        params: params
    })
}

export function exportExcel(){
    window.location.href = '/api/user/excel'
}